np logical not

38

np.logical_not(3)
False
>>> np.logical_not([True, False, 0, 1])
array([False,  True,  True, False])
a = np.array([True, False])
>>> b = np.array([False, False])
>>> a & b
array([False, False])

Comments

Submit
0 Comments